import api from '@/api';

export function queryProductClassApi(params) {
  return api.get('/tube/admin/queryProductClass', { params });
}

export function createProductClassApi(data) {
  return api.post('/tube/admin/createProductClass', data);
}

export function updateProductClassApi(data) {
  return api.put('/tube/admin/updateProductClass', data);
}

export function deleteProductClassApi(params) {
  return api.delete('/tube/admin/deleteProductClass', { params });
}

export function queryAllProductClassApi(params) {
  return api.get('tube/admin/queryAllProductClass', { params });
}